﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/C5.Master" AutoEventWireup="true"
    CodeBehind="RegisterLoginAccount.aspx.cs" Inherits="EasyCheque.Welcome.RegisterLoginAccount" %>

<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server">

    <script type="text/javascript">
        function show() {
            document.getElementById('ctl00_ctl00_RightContent_ContentPlaceHolder_Content_Panel_Calendar').style.display = '';
        }

        function hide() {
            document.getElementById('ctl00_ctl00_RightContent_ContentPlaceHolder_Content_Panel_Calendar').style.display = 'none';
        }
    </script>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    

    <div class="title_inner">
        注册
    </div>
    <asp:Table ID="Table_PersonalInfo" runat="server" CssClass="formtable">
        <asp:TableRow>
            <asp:TableCell CssClass="infoCellLabel">
                <asp:Label ID="Label_NAME" runat="server" Text="姓名"></asp:Label>
            </asp:TableCell>
            <asp:TableCell CssClass="infoCellValue">
                <asp:TextBox ID="TextBox_NAME" runat="server" AutoPostBack="false" ReadOnly="False">
                </asp:TextBox>
                <asp:Label ID="Label7" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell CssClass="infoUltraWidth">
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator_NAME" runat="server" ErrorMessage="姓名不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_NAME" ForeColor="#888888"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator4" runat="server" ErrorMessage="中文名格式不符。"
                    ValidationExpression="[\u4e00-\u9fa5]*" CssClass="tipwrong" ForeColor="#888888"
                    ControlToValidate="TextBox_NAME"></asp:RegularExpressionValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_ENAME" runat="server" Text="英文名"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_ENAME" runat="server" AutoPostBack="false">
                </asp:TextBox>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator5" runat="server" ErrorMessage="英文名格式不符。"
                    ValidationExpression="^\w+[\w\s]+\w+$" CssClass="tipwrong" ForeColor="#888888"
                    ControlToValidate="TextBox_ENAME"></asp:RegularExpressionValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <%--这下有够囧的了。class一个必须放在TableCell上才生效，一个必须放在DropDownList上。--%>
            <asp:TableCell>
                <asp:Label ID="Label_SEX" runat="server" Text="性别"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:DropDownList ID="DropDownList_SEX" runat="server" AutoPostBack="false" CssClass="infoDropDownList">
                </asp:DropDownList>
                <asp:Label ID="Label8" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator_SEX" runat="server" ErrorMessage="性别不能为空。"
                    CssClass="tipwrong" ControlToValidate="DropDownList_SEX" ForeColor="#888888"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_BIRTHDAY" runat="server" Text="生日"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:DropDownList ID="DropDownList_BIRTHDAY_YEAR" runat="server" OnSelectedIndexChanged="DropDownList_BIRTHDAY_MONTH_OnSelectedIndexChanged" AutoPostBack="True">
                </asp:DropDownList>
                年 &nbsp;
                <asp:DropDownList ID="DropDownList_BIRTHDAY_MONTH" runat="server" OnSelectedIndexChanged="DropDownList_BIRTHDAY_MONTH_OnSelectedIndexChanged" AutoPostBack="True">
                </asp:DropDownList>
                月 &nbsp;
                <asp:DropDownList ID="DropDownList_BIRTHDAY_DAY" runat="server">
                </asp:DropDownList>
                日
                <asp:Label ID="Label9" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_ADDRESS" runat="server" Text="地址"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_ADDRESS" runat="server" AutoPostBack="false">
                </asp:TextBox>
                <asp:Label ID="Label12" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator5" runat="server" ErrorMessage="地址不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_ADDRESS" ForeColor="#888888"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_PHONE" runat="server" Text="电话"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_PHONE" runat="server" AutoPostBack="false">
                </asp:TextBox>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator6" runat="server" ErrorMessage="请输入正确的手机号。"
                    CssClass="tipwrong" ControlToValidate="TextBox_PHONE" ForeColor="#888888" ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_CELLPHONE" runat="server" Text="手机"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_CELLPHONE" runat="server" AutoPostBack="false">
                </asp:TextBox>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator1" runat="server" ErrorMessage="请输入正确的手机号。"
                    CssClass="tipwrong" ControlToValidate="TextBox_CELLPHONE" ForeColor="#888888"
                    ValidationExpression="1\d{10}"></asp:RegularExpressionValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_EMAIL" runat="server" Text="电子邮箱"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_EMAIL" runat="server" AutoPostBack="false">
                </asp:TextBox>
                <asp:Label ID="Label11" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator_Amount" runat="server" ErrorMessage="邮箱地址不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_EMAIL" ForeColor="#888888"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator_Amount" runat="server"
                    ErrorMessage="请输入正确的邮箱地址。" CssClass="tipwrong" ControlToValidate="TextBox_EMAIL"
                    ForeColor="#888888" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    <br />
    <asp:Table ID="Table_RegisterForm" runat="server" CssClass="formtable">
        <asp:TableRow>
            <asp:TableCell CssClass="infoCellLabel">
                <asp:Label ID="Label_IDCARD" runat="server" Text="身份证号码"></asp:Label>
            </asp:TableCell>
            <asp:TableCell CssClass="infoCellValue">
                <asp:TextBox ID="TextBox_IDCARD" runat="server" AutoPostBack="false">
                </asp:TextBox>
                <asp:Label ID="Label10" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell CssClass="infoUltraWidth">
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator_IDCARD" runat="server" ErrorMessage="身份证号码不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_IDCARD" ForeColor="#888888"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator7" runat="server" ErrorMessage="请输入正确的身份证号码。"
                    CssClass="tipwrong" ControlToValidate="TextBox_IDCARD" ForeColor="#888888" ValidationExpression="^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$">
                </asp:RegularExpressionValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow Visible="False">
            <asp:TableCell>
                <asp:Label ID="Label_Comment" runat="server" Text="用户名"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_ACCOUNT" runat="server" AutoPostBack="false">
                </asp:TextBox>
                <asp:Label ID="Label3" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator1" runat="server" ErrorMessage="用户名不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_ACCOUNT" ForeColor="#888888"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator2" runat="server" ErrorMessage="用户名必须以字母开头，允许5-16字节，允许字母数字下划线"
                    ControlToValidate="TextBox_ACCOUNT" ValidationExpression="^[a-zA-Z][a-zA-Z0-9_]{4,15}$"
                    CssClass="tipwrong" ForeColor="#888888"></asp:RegularExpressionValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label2" runat="server" Text="添加银行账号"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_ACCOUNT_ID" runat="server" AutoPostBack="false">
                </asp:TextBox>
                <asp:Label ID="Label6" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator4" runat="server" ErrorMessage="银行账户不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_ACCOUNT_ID" ForeColor="#888888"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator3" runat="server" ErrorMessage="银行账户不符合格式。"
                    ControlToValidate="TextBox_ACCOUNT_ID" CssClass="tipwrong" ForeColor="#888888"
                    ValidationExpression="\d{19}"></asp:RegularExpressionValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label13" runat="server" Text="银行账号密码"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_ACCOUNT_PASSWORD" runat="server" AutoPostBack="false" TextMode="Password">
                </asp:TextBox>
                <asp:Label ID="Label14" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator6" runat="server" ErrorMessage="银行账号密码不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_ACCOUNT_PASSWORD" ForeColor="#888888">
                </asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_RemitteeAccount" runat="server" Text="登录密码"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_PASSWORD" runat="server" AutoPostBack="false" TextMode="Password">
                </asp:TextBox>
                <asp:Label ID="Label4" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator2" runat="server" ErrorMessage="登录密码不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_PASSWORD" ForeColor="#888888"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label1" runat="server" Text="确认登录密码"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_LoginPasswordConfirm" runat="server" AutoPostBack="false"
                    TextMode="Password">
                </asp:TextBox>
                <asp:Label ID="Label5" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator3" runat="server" ErrorMessage="确认登录密码不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_LoginPasswordConfirm" ForeColor="#888888"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="密码不符。"
                    ControlToCompare="TextBox_PASSWORD" ControlToValidate="TextBox_LoginPasswordConfirm"
                    CssClass="tipwrong" ForeColor="#888888"></asp:CompareValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell></asp:TableCell>
            <asp:TableCell>
                <asp:Button ID="Button_Register" runat="server" CssClass="pt_button" Text="注册" OnClick="Button_Register_Click" />
            </asp:TableCell>
            <asp:TableCell>
                <asp:Label ID="Label_CommitMessage" runat="server" Text="" ForeColor="Red" CssClass="tipwrong"></asp:Label>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
